﻿// 预览所有插件

(function(E, T, $){
var selection = E.mod('Selection');
/*
var cmds = [
		'a.PasteText',
		'a.PasteWord',
		'#demo-FontSize .jqe-button-menu',
		'#demo-Bold .jqe-button-menu',
		'#demo-ForeColor .jqe-button-menu',
		'#demo-JustifyLeft .jqe-button-menu',
		'a.Link',
		'a.HdImage',
		'a.MultiImage',
		'a.Video',
		'#demo-InsertTable .jqe-button-menu',
		'a.SpecialChar',
		'a.Code',
		'a.Source',
		'a.Help'
	];
	*/
var cmds = [
		[{name:'#demo-PasteText', type:'mouseover', time:500,fun: function(plugin) {
			//设置插入内容
			plugin.panel.find('textarea').val(self.pastValue);
		}}],
		[{name:'a.PasteText', type:'click', time:500}],
		[{name:'.jqe-panel-close', type:'click', time:500}],
		
		[{name:'#demo-PasteWord', type:'mouseover', time:1000}],
		[{name:'a.PasteWord', type:'click', time:1000}],
		[{name:'.jqe-panel-close', type:'click', time:1000}]
		/*
		[{name:'#demo-FontSize .jqe-button-menu', type:'click', time:1000}],
		[{name:'#demo-Bold .jqe-button-menu', type:'click', time:1000}],
		[{name:'#demo-ForeColor .jqe-button-menu', type:'click', time:1000}],
		[{name:'#demo-JustifyLeft .jqe-button-menu', type:'click', time:1000}],
		[{name:'a.Link', type:'click', time:1000}],
		[{name:'a.HdImage', type:'click', time:1000}],
		[{name:'a.MultiImage', type:'click', time:1000}],
		[{name:'a.Video', type:'click', time:1000}],
		[{name:'#demo-InsertTable .jqe-button-menu', type:'click', time:100}],
		[{name:'a.SpecialChar', type:'click', time:1000}],
		[{name:'a.Code', type:'click', time:1000}],
		[{name:'a.Source', type:'click', time:1000}],
		[{name:'a.Help', type:'click', time:1000}]
		*/
	];
T.addTest('AllPreview',{
	test: function() {
		var self = this;
		self.add(1000, cmds);
	}
});
})(jQEditor, AutoTest, jQuery)